How to create a line object in dashboard